import request from '@/util/request';

export const getNav = function(param){
	var url = '/staff/getNav';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getBanner = function(param){
	var url = '/configure/getBanner';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getNoticeList = function(param){
	var url = '/notice/getNoticeList';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getNoticeDetail = function(param){
	var url = '/notice/getNoticeDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const releaseNotice = function(param){
	var url = '/staff/releaseNotice';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getActiveList = function(param){
	var url = '/staff/getActiveList';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getActiveDetail = function(param){
	var url = '/staff/getActiveDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const completeActive = function(param){
	var url = '/staff/completeActive';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getTopic = function(param){
	var url = '/community/getTopic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const releaseTopic = function(param){
	var url = '/staff/releaseTopic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const releaseActive = function(param){
	var url = '/staff/releaseActive';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getStaffList = function(param){
	var url = '/staff/getStaffList';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const searchStaff = function(param){
	var url = '/staff/searchStaff';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getReport = function(param){
	var url = '/staff/getReport';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getBadge = function(param){
	var url = '/staff/getBadge';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getUserCar = function(param){
	var url = '/staff/getUserCar';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getUserHouse = function(param){
	var url = '/staff/getUserHouse';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const editLog = function(param){
	var url = '/staff/editLog';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const selectLog = function(param){
	var url = '/staff/selectLog';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getLogDetail = function(param){
	var url = '/staff/getLogDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}